<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@include file="../../base.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>

<title>Add_Edit</title>

<link href="${path}/admin123/css/main.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/bootstrap/easyui.css"/>
<link rel="stylesheet" type="text/css" href="${path}/js/jquery/easyui1.5/themes/icon.css"/>
<script type="text/javascript" src="${path}/js/jquery-1.8.0.min.js"></script>
<script src="${path}/js/jquery/easyui1.5/jquery.easyui.min.js"></script>
<script src="${path}/js/jquery/easyui1.5/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${path}/js/jquery.select.js"></script>
<script type="text/javascript" src="${path}/js/myjs/myutils.js?random=<%=Math.random()%>"></script>
<script type="text/javascript" src="data.js?random=<%=Math.random()%>"></script>

<style type="text/css">
	#layoutui { margin:5px;}
	#layoutui ol {  margin: 0;padding:5px;list-style: none;}
	#layoutui ol li{
		margin: 1px; padding-left:5px; padding-top:4px;
		float:left;
		width:300px; height:30px;
		background-color: #efefef;
        border: 1px solid #ddd;
	}
	#layoutui label{width:100px;float:left; border-bottom:0px solid #fff;}
	.clear_div{clear:both;}
</style>
<script type="text/javascript">
	var _path = '/zpmng/';
	var _primaryKey='id';
	var _isdialog4AddDialog = '0';

	//Add dialog 中combobox 选择时，看看哪些字段不用输入，直接隐藏了
	var _columnCombobox4AddArray = new Array();
	var _columnCombobox4AddJsonArray = new Array();

	//row data
	var _parameter1_iframedialog = ${paramValues.parameter1_iframedialog[0]};
	/*var _parameter2_iframedialog = ${paramValues.parameter2_iframedialog[0]};
	var _parameter3_iframedialog = ${paramValues.parameter3_iframedialog[0]};*/
</script>
<script type="text/javascript" src="../utils/add_edit.js?random=<%=Math.random()%>"></script>

</head>
<body class="font14">

	<form id="form_add" method="post">
		<input type="hidden" id="id" name="id"/>
		<div id="layoutui" style="       width:800px;height:400px;">
			<ol>
				<li id="_keyrandom_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >KeyRandom</label>
					<input class="easyui-textbox" name="keyrandom" id="keyrandom4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_mode_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >模式</label>
					<input class="easyui-combobox" name="mode" id="mode4Add"
						data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
					<script type="text/javascript">
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '[{"valueName":"表名直接拼接SQL","keyName":"0","optionId":11,"optionName":"SingleTable"},{"valueName":"TableNameSql里写表名join语句","keyName":"1","optionId":12,"optionName":"LeftJoinTable"},{"valueName":"按规则自定义SQL","keyName":"2","optionId":13,"optionName":"MySqlStatement"},{"valueName":"BeanObject指定调用对象方法","keyName":"3","optionId":14,"optionName":"BeanObject"},{"valueName":"存储过程","keyName":"4","optionId":30,"optionName":"SqlProduce"}]';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'mode4Add';
					</script>
				</li>
				<li id="_primarykey_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >PrimaryKey</label>
					<input class="easyui-textbox" name="primarykey" id="primarykey4Add"
						data-options={"required":true}  />
				</li>
				<li id="_isdialog_adddialog_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >表单打开方式</label>
					<input class="easyui-combobox" name="isdialogAdddialog" id="isdialogAdddialog4Add"
						data-options={"valueField":"keyName","textField":"valueName","required":true,"editable":false}  />
					<script type="text/javascript">
						_columnCombobox4AddJsonArray[_columnCombobox4AddJsonArray.length] = '[{"valueName":"弹出框","keyName":"1","optionId":0,"optionName":"Yes"},{"valueName":"标签页","keyName":"0","optionId":0,"optionName":"No"}]';
						_columnCombobox4AddArray[_columnCombobox4AddArray.length] = 'isdialogAdddialog4Add';
					</script>
				</li>
				<li id="_tablename_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >tableName</label>
					<input class="easyui-textbox" name="tablename" id="tablename4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_tablenameshow_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >tableNameShow</label>
					<input class="easyui-textbox" name="tablenameshow" id="tablenameshow4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hasaddbtn_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >hasAddBtn</label>
					<input class="easyui-textbox" name="hasaddbtn" id="hasaddbtn4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hasdownloadreportbtn_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >hasDownloadReportBtn</label>
					<input class="easyui-textbox" name="hasdownloadreportbtn" id="hasdownloadreportbtn4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_haseditbtn_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >hasEditBtn</label>
					<input class="easyui-textbox" name="haseditbtn" id="haseditbtn4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hashistorybtn_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >hasHistoryBtn</label>
					<input class="easyui-textbox" name="hashistorybtn" id="hashistorybtn4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_beanmethod_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >beanMethod</label>
					<input class="easyui-textbox" name="beanmethod" id="beanmethod4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_beanobject_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >beanObject</label>
					<input class="easyui-textbox" name="beanobject" id="beanobject4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_beanhistorymethod_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >beanHistoryMethod</label>
					<input class="easyui-textbox" name="beanhistorymethod" id="beanhistorymethod4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_tablealiasname_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >tableAliasName</label>
					<input class="easyui-textbox" name="tablealiasname" id="tablealiasname4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_foreignkey_line" class="text"  title="" >
					<label >foreignKey</label>
					<input class="easyui-textbox" name="foreignkey" id="foreignkey4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hasdelbtn_line" class="text"  title="" >
					<label >hasDelBtn</label>
					<input class="easyui-textbox" name="hasdelbtn" id="hasdelbtn4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hascompanyid_line" class="text"  title="" >
					<label >hasCompanyId</label>
					<input class="easyui-textbox" name="hascompanyid" id="hascompanyid4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_sqlprocedure_line" class="text"  title="" >
					<label >sqlProcedure</label>
					<input class="easyui-textbox" name="sqlprocedure" id="sqlprocedure4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_height4adddialog_line" class="text"  title="" >
					<label >height4AddDialog</label>
					<input class="easyui-textbox" name="height4adddialog" id="height4adddialog4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_width4adddialog_line" class="text"  title="" >
					<label >width4AddDialog</label>
					<input class="easyui-textbox" name="width4adddialog" id="width4adddialog4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_chartjson_line" class="text"  title="" >
					<label >chartJson</label>
					<input class="easyui-textbox" name="chartjson" id="chartjson4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_chartheight_line" class="text"  title="" >
					<label >chartHeight</label>
					<input class="easyui-textbox" name="chartheight" id="chartheight4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_chartwidth_line" class="text"  title="" >
					<label >chartWidth</label>
					<input class="easyui-textbox" name="chartwidth" id="chartwidth4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_interceptaddmethod_line" class="text"  title="" >
					<label >interceptAddMethod</label>
					<input class="easyui-textbox" name="interceptaddmethod" id="interceptaddmethod4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_intercepteditmethod_line" class="text"  title="" style="width: 300px; height: 30px; position: relative;">
					<label >interceptEditMethod</label>
					<input class="easyui-textbox" name="intercepteditmethod" id="intercepteditmethod4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_hascheckbox_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >hasCheckbox</label>
					<input class="easyui-textbox" name="hascheckbox" id="hascheckbox4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_datasource_line" class="text"  title="" style="width: 300px; height: 30px; position: relative;">
					<label >dataSource</label>
					<input class="easyui-textbox" name="datasource" id="datasource4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_interceptobject_line" class="text"  title="" style="width: 300px; height: 30px;">
					<label >interceptObject</label>
					<input class="easyui-textbox" name="interceptobject" id="interceptobject4Add"
						data-options={"valueField":"keyName","textField":"valueName"}  />
				</li>
				<li id="_tablenamesql_line" class="text"  title="" style="width: 607.4px; position: relative;">
					<label >tableNameSql</label>
					<input class="easyui-textbox" name="tablenamesql" id="tablenamesql4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_tablenamehistorysql_line" class="text"  title="" style="width: 607.4px; position: relative;">
					<label >tableNameHistorySql</label>
					<input class="easyui-textbox" name="tablenamehistorysql" id="tablenamehistorysql4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlpage_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlPage</label>
					<input class="easyui-textbox" name="sqlpage" id="sqlpage4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlcount_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlCount</label>
					<input class="easyui-textbox" name="sqlcount" id="sqlcount4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlsum_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlSum</label>
					<input class="easyui-textbox" name="sqlsum" id="sqlsum4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlreport_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlReport</label>
					<input class="easyui-textbox" name="sqlreport" id="sqlreport4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlpagehistory_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlPageHistory</label>
					<input class="easyui-textbox" name="sqlpagehistory" id="sqlpagehistory4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_sqlcounthistory_line" class="text"  title="" style="width: 606.4px; position: relative;">
					<label >sqlCountHistory</label>
					<input class="easyui-textbox" name="sqlcounthistory" id="sqlcounthistory4Add"
						data-options={"width":470,"height":25}  />
				</li>
				<li id="_style_adddialog_line" class="text"  title="" style="position: relative; width: 606.4px; height: 29.4px;">
					<label >style_adddialog</label>
					<input class="easyui-textbox" name="styleAdddialog" id="styleAdddialog4Add"
						data-options={"width":470,"height":25}  />
				</li>
			</ol>
			<div style="clear:both;"></div>
			<!-- 添加弹出框 Buttons -->
			<div style="background-color: #fff; text-align: center;margin-top:10px;">
				<table cellpadding="0" cellspacing="0" style="width:100%">
					<tr>
						<td style="text-align:center;">
							<a href="#" id="form_addButton" class="easyui-linkbutton" iconCls="icon-save">保存</a>
						</td>
					</tr>
				</table>
			</div>

			<div style="height: 20px;"></div>
		</div>


	</form>

</body>
</html>




